//
//  LSLiuChengTuVC.m
//  LaSaCivilAffairsDepartment
//
//  Created by 姜晓延 on 2019/8/20.
//  Copyright © 2019 wpkj. All rights reserved.
//

#import "LSLiuChengTuVC.h"

@interface LSLiuChengTuVC ()

@end

@implementation LSLiuChengTuVC

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"流程图";
    MBProgressHUD *hud = [MBProgressHUD showHUDAddedTo:self.view animated:YES];
    [NetworkUtils requestNOHandleWithMethod:@"POST" URL:[NSString stringWithFormat:@"%@&token=%@",cklct,[UserInfoModel sharedInstance].token]  param:@{@"id":self.dict[@"id"]} completionHandler:^(id responseObject, NSError *connectionError) {
        hud.hidden = YES;
        if (!connectionError) {
            NSNumber *status = [responseObject objectForKey:@"status"];
            if (status.integerValue == 200) {
                UIImageView *ImageView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, ScreenWidth, ScreenHeight-SafeAreaTopHeight)];
                [ImageView sd_setImageWithURL:[NSURL URLWithString:[responseObject[@"data"]firstObject][@"lctAccessPath"]] placeholderImage:[UIImage imageWithColor:hexColorAlpha(F0F0F0, 1)]];
                [self.view addSubview:ImageView];
            }else{
                [MBProgressHUD showTipMessageInWindow:responseObject[@"message"]];
            }
        }else{
            [MBProgressHUD showTipMessageInWindow:connectionError.localizedDescription];
        }
    }];
    // Do any additional setup after loading the view.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
